<template>
  <view class="RectWrap class">
    <view class="Rect">
      <slot />
    </view>
  </view>
</template>
<script lang="ts">
import Vue from '@/utils/Vue';

interface IData {}

export default Vue.extend({
  data(): IData {
    return {};
  },
  components: {},
  props: {},
  methods: {},
  options: {
    virtualHost: true,
  },
  externalClasses: ['class'],
});
</script>
<style lang="less" scoped>
.RectWrap {
  position: relative;
  padding-bottom: 100%;

  .Rect {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
  }
}
</style>
